import path
path.update_sys_path(path.APP_ROOT, path.SYS_PATH)

import sys
import ConfigParser

CONFIG_FILE = sys.argv[1]
CONFIG = ConfigParser.RawConfigParser()
CONFIG.read(CONFIG_FILE)

from scopt import watchdog
watchdog.send_command(CONFIG.getint('WATCHDOG', 'port'), 'shutdown')
